﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace RealEstateCenter
{
    public partial class SiteMaster : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["user_type"] == null)
                login_display.Text = "Not signed in";
            else
            {
                login_display.Text = "Hello " + Session["user_type"].ToString() + " <a href=\"logout.aspx\">Log Out</a>";
                if (Session["user_type"].ToString() == "agency")
                {
                    agency_menu.Style.Value = "";
                }
                if (Session["user_type"].ToString() == "estate_center")
                {
                    estate_center_menu.Style.Value = "";
                }
            }
        }

        protected void NavigationMenu_MenuItemClick(object sender, MenuEventArgs e)
        {

        }
    }
}
